package Calculator;

public class Jisuanqi01 {
    //做一个两位数计算器
    //要做到加减乘除的功能
    //要用到四个方法

    //方法的名字
    //方法的参数，几个，什么类型，参数的名字
    //返回值的类型
    //权限控制
    public double jia(double num1,double num2,double num3){
        return    num1+num2+num3;
    }
    public double jian(double num1,double num2,double num3){
         return  num1-num2-num3;
    }
    public double chen(double num1,double num2,double num3){
         return  num1*num2*num3;
    }
    public double chu(double num1,double num2,double num3){
         return num1/num2/num3;
    }
}
